package Midtest;

public class PlaneFactory {
    public Plane plane =null;

    public Plane getInstance(){
        if (plane==null){
            plane=new PlaneImpl();
            System.out.println("XX飞机创建成功！！");
        }
        return plane;
    }

}
